<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of PageCategory
 *
 * @author seth
 */
class PageCategory {
    //put your code here
    var $catid;
    var $contentid;
    var $ptitle;
    var $category;
    var $directlink;
    var $summary;
    var $picture;
    var $startdate;
    var $enddate;
    var $listtype;
    var $url;
    var $fxn;

    function  __construct($contentid,$categoryname,$pcontent,$directlink,$picture,$startdat,$enddate,$listtype,$fxn) {
     
      $this->catid =$contentid;
      $this->category= $categoryname;
      $this->ptitle=$categoryname;
      $this->summary = $pcontent;
      $this->directlink=$directlink;
      $this->contentid = $contentid;
      $this->picture=$picture;
      $this->startdate =$startdat;
      $this->enddate =$enddate;
      $this->listtype =$listtype;
      $this->fxn = $fxn;
    }

    function getCatExtraInfo()
    {
        if(strlen($this->summary)>10)
        return $this->fxn->pageExtraInfo($this->listtype, $this->startdate, $this->enddate,"short","");
    }
    function getURL()
    {

       return $this->fxn->processURL("page", $this->contentid, $this->category, $this->directlink);
    }
}
?>
